﻿<controls:ChildWindow xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices"  xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="ATSV2.Views.AdminCockpit"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="800" Height="544" 
           Title="Administrator's Cockpit" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:ATSV2.Web" xmlns:my1="clr-namespace:ATSV2.Web.Services">
    <sdk:ChildWindow.Resources>
        <CollectionViewSource x:Key="fotoSetGalerieItemSetsViewSource" Source="{Binding Path=Data.GalerieItemSets, ElementName=fotoSetDomainDataSource}" />
    </sdk:ChildWindow.Resources>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:NewsItemSet, CreateList=true}" Height="0" 
                                      LoadedData="newsItemSetDomainDataSource_LoadedData" Name="newsItemSetDomainDataSource" QueryName="GetNewsItemSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:SpielerSet, CreateList=true}" Height="0" 
                                      LoadedData="spielerSetDomainDataSource_LoadedData" Name="spielerSetDomainDataSource" QueryName="GetSpielerSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:TeamSet, CreateList=true}" Height="0" 
                                      LoadedData="teamSetDomainDataSource_LoadedData" Name="teamSetDomainDataSource" QueryName="GetTeamSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:NewsItemSet, CreateList=true}" Height="0" 
                                      LoadedData="fotoSetDomainDataSource_LoadedData" Name="fotoSetDomainDataSource" QueryName="GetFotoSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:TrainerSet, CreateList=true}" Height="0" 
                                      LoadedData="trainerSetDomainDataSource_LoadedData" Name="trainerSetDomainDataSource" QueryName="GetTrainerSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:TeamTypeSet, CreateList=true}" Height="0" LoadedData="teamTypeSetDomainDataSource_LoadedData" Name="teamTypeSetDomainDataSource" QueryName="GetTeamTypeSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:LigaSet, CreateList=true}" Height="0" LoadedData="ligaSetDomainDataSource_LoadedData" Name="ligaSetDomainDataSource" QueryName="GetLigaSetsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:ATSVDataContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        
        <sdk:TabControl Grid.Row="0">
            <sdk:TabItem Header="News">
                <Grid>
                    <Grid DataContext="{Binding ElementName=newsItemSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="12" Name="grid1" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>


                        <sdk:Label Content="Titel:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="titelTextBox" Text="{Binding Path=Titel, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        
                        <sdk:Label Content="Body:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Top" />
                        <TextBox Grid.Column="1" Grid.Row="1" Height="100" HorizontalAlignment="Left" Margin="3" Name="bodyTextBox" Text="{Binding Path=Body, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        
                        <sdk:Label Content="Link:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="3" Name="linkTextBox" Text="{Binding Path=Link, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                    </Grid>
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="442,182,0,0" Name="speichernButton" VerticalAlignment="Top" Width="112" Click="speichernButton_Click" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="319,182,0,0" Name="verwerfenButton" VerticalAlignment="Top" Width="112" Click="verwerfenButton_Click" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Spieler und Teams">
                <Grid>
                    <sdk:Label Height="28" HorizontalAlignment="Left" Margin="6,12,0,0" Name="label1" VerticalAlignment="Top" Width="167" Content="Spieler hinzufügen:" FontSize="16" />
                    <Grid DataContext="{Binding ElementName=spielerSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="6,40,0,0" Name="grid6" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <sdk:Label Content="Name:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="spielerNameTextBox" Text="{Binding Path=Name, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <sdk:Label Content="Vorname:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="spielerVornameTextBox" Text="{Binding Path=Vorname, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <sdk:Label Content="Jahrgang:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="3" Name="spielerJahrgangTextBox" Text="{Binding Path=Jahrgang, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" VerticalAlignment="Center" Width="120" />
                        <sdk:Label Content="Foto URL:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="spielerFotoUrlTextBox" VerticalAlignment="Center" Width="500" />
                        <Grid DataContext="{Binding ElementName=teamSetDomainDataSource, Path=Data}" Grid.ColumnSpan="2" Grid.Row="4" HorizontalAlignment="Left" Name="grid7" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <sdk:Label Content="Name:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <ComboBox DisplayMemberPath="Name" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="spielerTeamNameComboBox" VerticalAlignment="Center" Width="120">
                                <ComboBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <VirtualizingStackPanel />
                                    </ItemsPanelTemplate>
                                </ComboBox.ItemsPanel>
                            </ComboBox>
                        </Grid>
                    </Grid>
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="648,130,0,0" Name="spielerSpeichernButton" Click="spielerSpeichernButton_Click" VerticalAlignment="Top" Width="112" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="648,162,0,0" Name="spielerVerwerfenButton" Click="spielerVerwerfenButton_Click" VerticalAlignment="Top" Width="112" />
                    <sdk:Label Content="Team erstellen:" FontSize="16" Height="28" HorizontalAlignment="Left" Margin="6,191,0,0" Name="label5" VerticalAlignment="Top" Width="167" />
                    <Grid DataContext="{Binding ElementName=teamSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="6,215,0,0" Name="grid8" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <sdk:Label Content="Name:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="teamNameTextBox" Text="{Binding Path=Name, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />

                        <Grid DataContext="{Binding ElementName=ligaSetDomainDataSource, Path=Data}" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Left" Name="grid10" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <sdk:Label Content="Liga:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <ComboBox DisplayMemberPath="Name" Grid.Column="1" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3,3,0,3" Name="ligaNameComboBox" VerticalAlignment="Center" Width="334">
                                <ComboBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <VirtualizingStackPanel />
                                    </ItemsPanelTemplate>
                                </ComboBox.ItemsPanel>
                            </ComboBox>
                        </Grid>
                        
                        <Grid DataContext="{Binding ElementName=teamTypeSetDomainDataSource, Path=Data}" Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Left" Name="grid9" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <sdk:Label Content="Type:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <ComboBox DisplayMemberPath="Type" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="teamTypeComboBox" VerticalAlignment="Center" Width="120">
                                <ComboBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <VirtualizingStackPanel />
                                    </ItemsPanelTemplate>
                                </ComboBox.ItemsPanel>
                            </ComboBox>
                        </Grid>
                        
                        <sdk:Label Content="Ergebnisse:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="ergebnisseTextBox" Text="{Binding Path=Ergebnisse, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <sdk:Label Content="Spielplan:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="spielplanTextBox" Text="{Binding Path=Spielplan, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <sdk:Label Content="Statistik:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="statistikTextBox" Text="{Binding Path=Statistik, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <sdk:Label Content="Tabelle:" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="6" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="tabelleTextBox" Text="{Binding Path=Tabelle, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        
                    </Grid>
                   
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="648,360,0,0" Name="teamSpeichernButton" Click="teamSpeichernButton_Click" VerticalAlignment="Top" Width="112" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="648,392,0,0" Name="teamVerwerfenButton" Click="teamVerwerfenButton_Click" VerticalAlignment="Top" Width="112" />
                </Grid>
            </sdk:TabItem>
            
            <sdk:TabItem Header="Trainer">
                <Grid>
                    <sdk:Label Height="28" HorizontalAlignment="Left" Margin="6,12,0,0" Name="label2" VerticalAlignment="Top" Width="167" Content="Trainer hinzufügen" FontSize="16" />
                   
                    
                    <Grid DataContext="{Binding ElementName=trainerSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="6,40,0,0" Name="grid3" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <sdk:Label Content="Name:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="nameTextBox" Text="{Binding Path=Name, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="250" />
                        <sdk:Label Content="Vorname:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="vornameTextBox" Text="{Binding Path=Vorname, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="250" />
                        <sdk:Label Content="Foto URL:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="fotoURLTextBox" VerticalAlignment="Center" Width="250" />
                        <sdk:Label Content="Name:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <ComboBox DisplayMemberPath="Name" Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding ElementName=teamSetDomainDataSource, Path=Data}" Margin="3,3,0,3" Name="nameComboBox" VerticalAlignment="Center" Width="250">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel />
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                        </ComboBox>
                    </Grid>
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="247,182,0,0" Name="triainerSpeichernButton" VerticalAlignment="Top" Width="112" Click="triainerSpeichernButton_Click" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="109,182,0,0" Name="trainerVerwerfenButton" VerticalAlignment="Top" Width="112" Click="trainerVerwerfenButton_Click" />
                    
                </Grid>               
            </sdk:TabItem>


            <sdk:TabItem Header="Foto">
                <Grid>
                    
                    <Grid DataContext="{Binding ElementName=fotoSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="12,44,0,0" Name="grid2" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>


                        <sdk:Label Content="Titel:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="FototitelTextBox" Text="{Binding Path=Titel, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />

                        <sdk:Label Content="URL:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="3" Name="FotoURLTextBox" Text="{Binding Path=URL, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                    </Grid>
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="648,47,0,0" Name="FotoSpeichernButton" VerticalAlignment="Top" Width="112" Click="FotoSpeichernButton_Click" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="648,76,0,0" Name="FotoVerwerfenButton" VerticalAlignment="Top" Width="112" Click="FotoVerwerfenButton_Click" />
                    <sdk:Label Height="28" HorizontalAlignment="Left" Margin="6,16,0,0" Name="label3" VerticalAlignment="Top" Width="159" Content="Foto hinzufügen:" FontSize="16" />
                    <sdk:Label Content="Galerie-Eintrag erstellen:" FontSize="16" Height="28" HorizontalAlignment="Left" Margin="6,114,0,0" Name="label4" VerticalAlignment="Top" Width="239" />
                    <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:GalerieItemSet, CreateList=true}" Height="0" LoadedData="galerieItemSetDomainDataSource_LoadedData" Name="galerieItemSetDomainDataSource" QueryName="GetGalerieItemSetsQuery" Width="0">
                        <riaControls:DomainDataSource.DomainContext>
                            <my1:ATSVDataContext />
                        </riaControls:DomainDataSource.DomainContext>
                    </riaControls:DomainDataSource>
                    <Grid DataContext="{Binding ElementName=galerieItemSetDomainDataSource, Path=Data}" HorizontalAlignment="Left" Margin="15,142,0,0" Name="grid4" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <sdk:Label Content="Titel:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="3,3,0,3" Name="GalerieItemTitelTextBox" Text="{Binding Path=Titel, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        
                        <sdk:Label Content="Kommentar:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Top" />
                        <TextBox Grid.Column="1" Grid.Row="1" Height="50" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="3,3,0,3" Name="GalerieItemKommentarTextBox" Text="{Binding Path=Kommentar, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="500" />
                        <Grid DataContext="{Binding Source={StaticResource fotoSetGalerieItemSetsViewSource}}" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2" HorizontalAlignment="Left" Name="grid5" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <sdk:Label Content="Foto:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <ComboBox DisplayMemberPath="Titel" Grid.Column="1" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3,3,0,3" Name="GalerieItemFotoTitelComboBox" VerticalAlignment="Center" Width="500">
                                <ComboBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <VirtualizingStackPanel />
                                    </ItemsPanelTemplate>
                                </ComboBox.ItemsPanel>
                            </ComboBox>
                        </Grid>
                    </Grid>
                    <Button Content="Speichern" Height="23" HorizontalAlignment="Left" Margin="648,201,0,0" Name="GalerieItemSpeichernButton" Click="GalerieItemSpeichernButton_Click" VerticalAlignment="Top" Width="112" />
                    <Button Content="Verwerfen" Height="23" HorizontalAlignment="Left" Margin="648,230,0,0" Name="GalerieItemVerwerfenButton" Click="GalerieItemVerwerfenButton_Click" VerticalAlignment="Top" Width="112" />
                    <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:GalerieSet, CreateList=true}" Height="0" LoadedData="galerieSetDomainDataSource_LoadedData" Name="galerieSetDomainDataSource" QueryName="GetGalerieSetsQuery" Width="0">
                        <riaControls:DomainDataSource.DomainContext>
                            <my1:ATSVDataContext />
                        </riaControls:DomainDataSource.DomainContext>
                    </riaControls:DomainDataSource>
                    <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:GalerieTypeSet, CreateList=true}" Height="0" LoadedData="galerieTypeSetDomainDataSource_LoadedData" Name="galerieTypeSetDomainDataSource" QueryName="GetGalerieTypeSetsQuery" Width="0">
                        <riaControls:DomainDataSource.DomainContext>
                            <my1:ATSVDataContext />
                        </riaControls:DomainDataSource.DomainContext>
                    </riaControls:DomainDataSource>
                </Grid>
            </sdk:TabItem>

        </sdk:TabControl>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>